import "./App.css";
import {
  Routes,
  Route,
} from "react-router-dom";
import Login from "./pages/Login";
import Layout from "./pages/Layout";
import { HistoryRouter, history } from "./utils/history";
function App() {
  return (
      <div className="App">
        <HistoryRouter history={history}>
        <Routes>
          <Route path="/login" element={<Login />} />
          <Route path="/" element={<Layout />}>
            {/* 配置嵌套路由
               二级路由默认页面 */}
          </Route>
        </Routes>
        </HistoryRouter>
      </div>
  );
}

export default App;
